<%-- 
    Document   : main_dethi
    Created on : Mar 8, 2012, 2:52:16 PM
    Author     : samph
--%>

<%@page import="CONTROLLER_ADMIN.CauHoi"%>
<%@page import="java.util.ArrayList"%>
<%@page import="MODEL.POJO.Warehouses"%>
<%@page import="java.util.List"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<div id="khung">
    <% 
        String madethi = (String)request.getAttribute("madethi"); 
        ArrayList dsCauHoi = (ArrayList)request.getAttribute("dsCauHoiCuaDe");
    %>
    <br /><strong style="color: #6666FF">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DANH SÁCH CÁC CÂU HỎI CỦA ĐỀ THI SỐ <%= madethi%></strong><br /> 
        <div class="khungnho">
            <%
              
                for(int i = 0 ; i < dsCauHoi.size(); i++)  {
                    CauHoi ch= (CauHoi)dsCauHoi.get(i);
                    
                    %>
                    <div style="padding-top: 20px; padding-left: 20px">
                        <div style ="font-weight: bold"> CÂU <%= i+1 %></div> 
                        <div style="padding-left: 10px"><%= ch.getQuestion() %></div>  
                        <div style="padding-left: 20px">
                            <input TYPE="radio" NAME="radios_<%= i %>" VALUE="radio1" disabled 
                                   <% if(ch.getResult() ==1)
                                   {
                                   %>
                                   checked color="red"
                                   <%
                                   }
                                   %>
                            ><%= ch.getAnswer_1() %></input> 
                            </br>
                            <input TYPE="radio" NAME="radios_<%= i %>" VALUE="radio2" disabled 
                                   <% if(ch.getResult() ==2)
                                   {
                                   %>
                                    checked  color="red"
                                   <%
                                   }
                                   %>
                            ><%= ch.getAnswer_2() %></input>  
                               </br>
                            <input TYPE="radio" NAME="radios_<%= i %>" VALUE="radio3" disabled 
                                   <% if(ch.getResult() ==3)
                                   {
                                   %>
                                   checked  color="red"
                                   <%
                                   }
                                   %>
                            ><%= ch.getAnswer_3() %></input>  
                               </br>
                            <input TYPE="radio" NAME="radios_<%= i %>" VALUE="radio4" disabled 
                                   <% if(ch.getResult() ==4)
                                   {
                                   %>
                                   checked color="red"
                                   <%
                                   }
                                   %>
                            ><%= ch.getAnswer_4() %></input>  
                            
                            
                        </div>
                    </div>
                    <%
                }
            
            %>
        </div>
</div>
<div class="cleaner"></div>
